package blackberry.util;

import net.rim.device.api.ui.Color;

public class DjColorData { 
	
	public static final int DEFAULT = -1;
	
	private static final int DEFAULT_COLOR = Color.BLACK;
	private static final int DEFAULT_GLOBAL_ALPHA = 255;
	
	private final int color;
	private final int globalAlpha;
	
	public DjColorData(int color, int globalAlpha) {
		if (color == DEFAULT)
			this.color = DEFAULT_COLOR;
		else
			this.color = color;
		
		if (globalAlpha == DEFAULT)
			this.globalAlpha = DEFAULT_GLOBAL_ALPHA;
		else
			this.globalAlpha = globalAlpha;
	}

	public int getColor() {
		return color;
	}
	
	public int getGlobalAlpha() {
		return globalAlpha;
	}
}